package com.sgb.zhaocai.view.demand.activity;

import android.content.Context;
import android.content.Intent;
import androidx.databinding.DataBindingUtil;

import com.sgb.zhaocai.R;
import com.sgb.zhaocai.databinding.ZcActivityMainBinding;
import com.swgk.core.base.AppActivity;
import com.swgk.core.util.SharedPreferenceUtil;

public class MainActivity extends AppActivity {

    private ZcActivityMainBinding mBinding;
    private String longitude="34.19401292023867";//经度
    private  String latitude="108.88590580397009";//纬度
    String  pctoken ="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIxMzMxNzk3MDIzMTkxNjAxMTUyIiwic2NvcGUiOiJkZWZhdWx0IiwiaXNzIjoiMTgyMjkwNjUyMjAiLCJsb2dpbiI6MTYzMTc3NDgzNH0.piTlBEOZtwdMMLPJvL6xUjhxVEN0dcgOod1Ke2KBBNysS5-_-LJbsCW57ArvEWco0caUSRHcV7YbinS-3RfS5DopP5_bAqw0A4M_f_9WBVgyxoUeSQjbSfJE0ys0S7X0pG9OQLEibNu2Hp_j2xtjNDUNUN3-LvjTSrIQ-Gq0r-s";
    String appToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJubyI6IjIwMjAwODAzMTEwODE1IiwiY29tcGFueV9pZCI6IjE0NDAiLCJhY2NvdW50X25hbWUiOiIxODIyOTA2NTIyMCIsInJlc291cmNlX3BjX3Rva2VuIjoiZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lKU1V6VXhNaUo5LmV5SnpkV0lpT2lJeE16TXhOemszTURJek1Ua3hOakF4TVRVeUlpd2ljMk52Y0dVaU9pSmtaV1poZFd4MElpd2lhWE56SWpvaU1UZ3lNamt3TmpVeU1qQWlMQ0pzYjJkcGJpSTZNVFl6TVRjM05EZ3pOSDAucGlUbEJFT1p0d2RNTUxQSnZMNnhVamh4VkVOMGRjZ09vZDFLZTJLQkJOeXNTNS1fLUxKYnNDVzU3QXJ2RVdjbzBjYVVTUkhjVjdZYmluUy0zUmZTNURvcFA1X2JBcXcwQTRNX2ZfOVdCVmd5eG9VZVNRamJTZkpFMHlzMFM3WDBwRzlPUUxFaWJOdTJIcF9qMnh0ak5EVU5VTjMtTHZqVFNySVEtR3Ewci1zIiwiaXNzIjoicGVyZnJlZSIsImNvbXBhbnlfbm8iOiIyMDIwMDgwMzcxMTM2NDYiLCJpZCI6IjMyMzEiLCJleHAiOjE2MzQzNjY4MzQsInVzZXJuYW1lIjoiMTgyMjkwNjUyMjAifQ.Fa9BAm13hOoJT7eYUQT7AyeMuFhV77Oism-M5n6bt7A";


    @Override
    protected void initView() {
        mBinding = DataBindingUtil.setContentView(this, R.layout.zc_activity_main);
        mBinding.include.ivBack.setOnClickListener(v -> finish());
        mBinding.include.titleView.setText("招采");
        SharedPreferenceUtil.getInstance().saveData(SharedPreferenceUtil.LOGIN_TOKEN, appToken);
        SharedPreferenceUtil.getInstance().saveData(SharedPreferenceUtil.LOGIN_PC_TOKEN, pctoken);
        mBinding.demandForecast.setOnClickListener(v -> DemandForecastActivity.start(this));
        mBinding.projectMagess.setOnClickListener(v -> ProjectIssueListActivity.start(this));
        mBinding.demandMagess.setOnClickListener(v -> DemandIssueListActivity.start(this));
    }

    @Override
    protected void init() {
    }


}